package com.alphas.aivergil.config;

import dev.langchain4j.store.memory.chat.ChatMemoryStore;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * LangChain4j配置类
 */
@Configuration
public class LangChain4jConfig {

    /**
     * 注册ChatMemoryStore Bean
     * 
     * 注意：PersistentChatMemoryStore已经被标记为@Component，
     * 这里不需要再次注册，Spring会自动注入
     */
    @Bean
    public ChatMemoryStore chatMemoryStore(ChatMemoryStore persistentChatMemoryStore) {
        return persistentChatMemoryStore;
    }
}